How to prove a matrix is symmetric